package com.woniu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.mapper.StudioMapper;
import com.woniu.domain.Studio;
import com.woniu.service.IStudioService;

/**
 * 场馆模块Service业务层处理
 * 
 * @author QAQ
 * @date 2023-02-16
 */
@Service
public class StudioServiceImpl implements IStudioService 
{
    @Autowired
    private StudioMapper studioMapper;

    /**
     * 查询场馆模块
     * 
     * @param studioId 场馆模块主键
     * @return 场馆模块
     */
    @Override
    public Studio selectStudioByStudioId(Long studioId)
    {
        return studioMapper.selectStudioByStudioId(studioId);
    }

    /**
     * 查询场馆模块列表
     * 
     * @param studio 场馆模块
     * @return 场馆模块
     */
    @Override
    public List<Studio> selectStudioList(Studio studio)
    {
        return studioMapper.selectStudioList(studio);
    }

    /**
     * 新增场馆模块
     * 
     * @param studio 场馆模块
     * @return 结果
     */
    @Override
    public int insertStudio(Studio studio)
    {
        return studioMapper.insertStudio(studio);
    }

    /**
     * 修改场馆模块
     * 
     * @param studio 场馆模块
     * @return 结果
     */
    @Override
    public int updateStudio(Studio studio)
    {
        return studioMapper.updateStudio(studio);
    }

    /**
     * 批量删除场馆模块
     * 
     * @param studioIds 需要删除的场馆模块主键
     * @return 结果
     */
    @Override
    public int deleteStudioByStudioIds(Long[] studioIds)
    {
        return studioMapper.deleteStudioByStudioIds(studioIds);
    }

    /**
     * 删除场馆模块信息
     * 
     * @param studioId 场馆模块主键
     * @return 结果
     */
    @Override
    public int deleteStudioByStudioId(Long studioId)
    {
        return studioMapper.deleteStudioByStudioId(studioId);
    }
}
